package com.hanserwei.mydemo.stream;

import java.util.stream.IntStream;

public class GenerateTest2 {
    public static void main(String[] args) {
        // IntStream.iterate
        IntStream.iterate(1, x -> x < 10, x -> x + 2)
                .forEach(System.out::print);
    }
}
